package com.taotao.sys.service.impl;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.google.common.base.Preconditions;
import com.taotao.sys.mapper.SysRoleFuncMapper;
import com.taotao.sys.model.po.SysRoleFunc;
import com.taotao.sys.service.SysRoleFuncService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 角色功能关联表服务接口实现类
 * </p>
 *
 * @author Fan Beibei
 * @version V1.0
 * @since 2023-04-08 19:57:22
 */
@Slf4j
@Service
public class SysRoleFuncServiceImpl implements SysRoleFuncService {
    @Resource
    private SysRoleFuncMapper sysRoleFuncMapper;




    @Override
    public PageInfo<SysRoleFunc> queryByPage(SysRoleFunc param, int pageNum, int pageSize) {
        Preconditions.checkArgument(pageNum > 0);
        Preconditions.checkArgument(pageSize > 0);

        Page<SysRoleFunc> page =  sysRoleFuncMapper.selectByPage(param,pageNum,pageSize);

        return new PageInfo<>(page);
    }






//------------以上是生成代码-----------------------------------------------------------------------------------------------------------------









}
